package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjy
 * @since 2025-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BoardroomState对象", description = "会议室状态")
public class BoardroomState implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会议室状态编号，自增，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会议室编号")
    private Integer boardroomId;

    @ApiModelProperty(value = "日期（yyyy-MM-dd)")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty(value = "起始时间（HH:mm:ss)")
    @JsonFormat(pattern = "HH:mm:ss")
    private Date startTime;  // 修改为字符串类型

    @ApiModelProperty(value = "结束时间（HH:mm:ss)")
    @JsonFormat(pattern = "HH:mm:ss")
    private Date endTime;    // 修改为字符串类型

    @ApiModelProperty(value = "状态：1空闲，2锁定，3预订，4使用，5维护")
    private Integer state;
}
